﻿using System;
using System.Collections.Generic;
using System.Text;

namespace InterfaceAndImplements
{
    class Birds:IFly   //实现接口
    {
        public virtual void BirdsFly()
        {
            Console.WriteLine("鸟类飞飞飞");
        }
        public virtual void Eat()
        {
            Console.WriteLine("鸟类吃吃吃");
        }

    }

    //不会飞
    class FitBirds : ICanNotFly
    {
        public void BirdsCanNotFly()
        {
            Console.WriteLine("太胖飞不起来");
            Console.WriteLine("鸵鸟，企鹅");
        }
    }



}
